<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5元素溢出</title>
    <style>
        div{
            border: 5px solid #f00;
            width: 500px;
        /*    溢出处理*/
            overflow: auto;
        }
        img{
            width: 200px;
        /*    垂直方向的对其方式*/
            vertical-align: baseline; /* 默认对其方法 */
            vertical-align: bottom;  /* 底部对其 */
            vertical-align: top;    /* 顶部对其*/
            vertical-align: middle; /* 中间对其*/
        }
    </style>
</head>
<body>
    abgy<img src="img/1.jpg">国圈<img src="img/1.jpg">
  <div>
        <img src="img/1.jpg" alt="">
        <img src="img/1.jpg" alt="">
        <img src="img/1.jpg" alt="">
  </div>
</body>
</html>